<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>
<h1><?php echo Yii::t("msg", "0003");?></h1>
<hr>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=> true,
	'enableClientValidation'=> false,
	'htmlOptions' => array(
		'class' => 'form-horizontal',
        'enctype' => 'multipart/form-data'
	)
)); ?>

	<fieldset style="text-align:left">
        <legend class="signup-section"><?php echo Yii::t("msg", "0001");?></legend>
        <div class="control-group">
            <?php echo $form->label($model,'username',array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model,'username', array('class' => 'span6'));?>
                <?php echo $form->error($model,'username',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->label($model,'password',array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->passwordField($model,'password', array('class' => 'span6'));?>
                <?php echo $form->error($model,'password',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->label($model,'re_password',array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->passwordField($model,'re_password', array('class' => 'span6'));?>
                <?php echo $form->error($model,'re_password',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
            </div>
        </div>
        <legend class="signup-section"><?php echo Yii::t("msg", "0002");?></legend>
        <div class="control-group">
            <?php echo $form->label($model,'email',array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model,'email', array('class' => 'span6'));?>
                <?php echo $form->error($model,'email',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->label($model,'phone',array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model,'phone', array('class' => 'span6'));?>
                <?php echo $form->error($model,'phone',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
            </div>
        </div>
		<?php if(CCaptcha::checkRequirements()): ?>
		<div class="control-group">
			<?php echo $form->labelEx($model,'verifyCode',array('class' => 'control-label')); ?>
			<div class="controls">
			<?php $this->widget('CCaptcha'); ?><br>
			<?php echo $form->textField($model,'verifyCode'); ?>
			<?php echo $form->error($model,'verifyCode'); ?>
			</div>
		</div>
		<?php endif; ?>
        <div class="form-actions">
            <button type="submit" class="btn btn-primary"><?php echo Yii::t("lbl", "0001");?></button>
            <button type="reset" class="btn" ><?php echo Yii::t("lbl", "0002");?></button>
        </div>
    </fieldset>
<?php $this->endWidget(); ?>
</div><!-- form -->